Function: readBytesFromFile

CALL:

int8array = readBytesFromFile(fname)

DESCRIPTION:

Read content of file as byte array

INPUT:

fname string
name of an existing file (error will occur if file does
not exist)

OUTPUT:

int8array int8[]
int8 array containing the bytes of the file

EXAMPLE:

      if ~exist(fname,'file')
          error('File %s does not exist',fname)
      end
      int8array = readBytesFromFile(fname)